package com.chenfy.everysound.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

abstract class BaseActivity:AppCompatActivity() {
    abstract fun layout():Int



    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(layout())
        initView()
        initData()
    }

    open fun initView(){}
    open fun initData(){}


}